package com.mjh.zhujianju.dao.party;

import com.livew.framework.base.dao.BaseMapper;
import com.mjh.zhujianju.model.party.BuildingExamAnswerEO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BuildingExamAnswerMapper extends BaseMapper<BuildingExamAnswerEO> {

    /**
     * 根据题目id查询下面所有的答案
     * @param list
     * @return
     */
    List<BuildingExamAnswerEO> queryBuildingExamAnswerByTopicIds(List<Long> list);

    void deleteAllAnswers(List<Long> ids);

    void saveAll(List<BuildingExamAnswerEO> buildingExamAnswerEOS);

    List<BuildingExamAnswerEO> selectByTopicId(@Param("topicId") Long topicId);

    void deleteByTopicId(@Param("topicId") Long topicId);
}